package com.itheima.d1_junit;

import org.junit.*;

import static org.junit.Assert.*;

public class StringUtilTest {
    @Before
    public void bef() {
        System.out.println("before");
    }

    @After
    public void aft() {
        System.out.println("after");
    }

    @BeforeClass
    public static void bercls(){
        System.out.println("beforeclass");
    }

    @AfterClass
    public static void aftcls() {
        System.out.println("afterclass");

    }

    @Test
    public void printNumber() {
        StringUtil.printNumber("张三");

    }

    @Test
    public void getMaxIndex() {
        int maxIndex = StringUtil.getMaxIndex("123456789");
        System.out.println("最大索引：" + maxIndex);
    }
}